package com.gyg.controller;

import com.gyg.client.CloudMenuClient;
import com.gyg.returns.RespEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cloud-menu")
@Slf4j
@Api(value = "菜单模块", tags = "菜单模块")
public class CloudMenuController {

    @Autowired
    private CloudMenuClient cloudMenuClient;

    @GetMapping("/list")
    @ApiOperation(value = "菜单列表")
    public RespEntity queryAllMenus() {
        return cloudMenuClient.queryAllMenu();
    }

}
